package com.treasure.hunt.entity

import com.module.lemlin.rxhttp.HttpServiceData
import java.io.Serializable

data class GoodsResponse(
    val data: MutableList<Goods> = mutableListOf()
) : HttpServiceData() {
    var loadMore = false
}

data class Goods(
    val cart_id: Int,
    val cart_num: Int,
    val cartconfig: Cartconfig,
    val difference: Int,
    val id: Int,
    val image: String,
    val is_synthesis: Int,
    val stock: Int,
    val title: String,
    val actual_probability: String,
    val ctitle: String,
    var is_collection: Int//"收藏 1=是 0=否"
)

data class Cartconfig(
    val image: String
)

data class CategoryResponse(
    val data: MutableList<Category> = mutableListOf()
) : HttpServiceData()

data class Category(
    val id: Int,
    val image: String,
    val name: String,
    val url: String
) : Serializable

data class SearchResponse(
    val data: MutableList<Search> = mutableListOf()
) : HttpServiceData()

data class Search(
    val id: Int,
    val title: String
)

data class NoticeResponse(
    val data: MutableList<Notice> = mutableListOf()
) : HttpServiceData()

data class Notice(
    val id: Int,
    val title: String,
    val image: String
)

data class GoodsRequest(
    var category_id: Int? = null,
    var search: String? = null,
    var page: Int = 1,
    var limit: Int = 20
)

data class MergeResponse(
    val data: MutableList<Merge> = mutableListOf()
) : HttpServiceData()

data class Merge(
    val createtime: Int,
    val createtime_text: String,
    val goods_image: String,
    val goods_title: String,
    val id: Int,
    val status: Int,
    val status_text: String
)

data class SynthesisResponse(
    val data: Synthesis
) : HttpServiceData()

data class Synthesis(
    val url: String
)

data class GoodsCollectionResponse(
    val data: Collection
) : HttpServiceData() {
    var goodsId: Int = 0
}

data class Collection(
    val code: Int
)
